<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>jsx语法</title>
    <script src="../build/react.min.js"></script>
    <script src="../build/react-dom.min.js"></script>
    <script src="../build/browser.min.js"></script>
</head>
<body>
<div id="example"></div>
<script type="text/babel">
    var str = ['li', 'wang', 'chen'];
    ReactDOM.render(
    <div>
    {
        str.map(function (name) {
                return <div> Hello,{name}</div>
            })
    }
    </div>,
        document.getElementById('example')
    )
</script>
</body>
</html>